partition of sets solved problem